<?php


namespace app\api\controller;
use think\Controller;
use think\Request;

class Midnight extends Controller
{
    public function midnightEditOrder(Request $request)
    {
        $file = 'log.txt';
        $content = date('Y-m-d H:i:s')."\r\n访问成功\r\n \r\n";
        file_put_contents($file, $content, FILE_APPEND);
    }
}